package com.zj.base.permission;

import java.io.Serializable;

/**
 * Created by zhaojie on 2018/5/25.
 */

public class ConfigurationModules implements Serializable {

    public boolean isForce = false;
    /**
     * the manifest permission name
     */
    public String permission;
    /**
     * if you show this permission by dialog,which is detail;
     */
    public String detail;
    /**
     * the dialog content with lower version device , show a summary text to users;
     */
    public String summary;
    /**
     * lower than android M,if you had configure a special method,insert you method name
     */
    public String declaredMethodName;
    /**
     * lower than android M,if you never configure a special method with this permission
     */
    public String opName;

    public ConfigurationModules(String permission, String detail, String summary, String declaredMethodName, String opName) {
        this.permission = permission;
        this.detail = detail;
        this.summary = summary;
        this.declaredMethodName = declaredMethodName;
        this.opName = opName;
    }

    public ConfigurationModules(boolean isForce, String permission, String detail, String summary, String declaredMethodName, String opName) {
        this.isForce = isForce;
        this.permission = permission;
        this.detail = detail;
        this.summary = summary;
        this.declaredMethodName = declaredMethodName;
        this.opName = opName;
    }
}
